<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">使用状态:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                {foreach name="fenableList" item="vo"}
                <label for="row[fenable]-{$key}"><input id="row[fenable]-{$key}" name="row[fenable]" type="radio" value="{$key}" {in name="key" value="1"}checked{/in} /> {$vo}</label>
                {/foreach}
            </div>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">数据中心/组织:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="form-inline" data-toggle="cxselect" data-selects="first,second">
                <select class="first form-control" name="row[fk_bdl_bd_datacenter]" data-url="bdl/bd/datacenter/getFilter?type=get_datacenter_list_for_form_select">
                    <option value="{$row.fk_bdl_bd_datacenter}" selected="">----</option>
                </select>
                <select class="second form-control" name="row[forgid]" data-url="bdl/bd/datacenter/getFilter?type=get_org_list_for_form_select" data-query-name="fk_bdl_bd_datacenter">
                    <option value="{$row.forgid}" selected="">---</option>
                </select>
            </div>

        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">编码:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-fnumber" class="form-control" name="row[fnumber]" value="{$row.fnumber|htmlentities}" type="text">
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">标题:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-fname" class="form-control" name="row[fname]" value="{$row.fname|htmlentities}" type="text">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">标签:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                {foreach name="labelList" item="vo"}
                <label for="row[fk_bdl_label]-{$key}"><input id="row[fk_bdl_label]-{$key}" name="row[fk_bdl_label]" type="radio" {if $row.fk_bdl_label == $key} checked {/if}  value="{$key}" /> {$vo}</label>
                {/foreach}
            </div>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">链接方式:</label>
        <div class="col-xs-12 col-sm-8">
            <select  data-live-search="true"  title="没有选中任何项" id="c-type" class="form-control selectpicker" name="row[fk_bdl_linktype]">
                {foreach name='linktype' item='vo'}
                <option  {if $row.fk_bdl_linktype == $key} selected {/if} value="{$key}">{$vo}</option>
                {/foreach}
            </select>
        </div>
    </div>


    <div style="display: {if $row.fk_bdl_linktype == 1}  block {else}  none {/if}"  class="form-group problemlist-add-url">
        <label class="control-label col-xs-12 col-sm-2">跳转链接:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-fk_bdl_urllink" class="form-control" name="row[fk_bdl_urllink]"  value="{$row.fk_bdl_urllink|htmlentities}"  type="text">
        </div>
    </div>

    <div style="display: {if $row.fk_bdl_linktype == 0}  block {else}  none {/if}"  class="form-group problemlist-add-object_id">
        <label class="control-label col-xs-12 col-sm-2">详情:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-fk_bdl_content" class="form-control editor" rows="5" name="row[fk_bdl_content]" cols="50">{$row.fk_bdl_content|htmlentities}</textarea>
        </div>
    </div>



    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">备注:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-fk_bdl_comment" class="form-control" name="row[fk_bdl_comment]"  value="{$row.fk_bdl_comment|htmlentities}"  type="text">
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">权重:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-fk_bdl_weight" class="form-control" name="row[fk_bdl_weight]"  value="{$row.fk_bdl_weight|htmlentities}"  type="number">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">浏览量:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-fk_bdl_pageview" class="form-control" name="row[fk_bdl_pageview]"  value="{$row.fk_bdl_pageview|htmlentities}"  type="number">
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">确定</button>
            <button type="reset" class="btn btn-default btn-embossed">重置</button>
        </div>
    </div>
</form>
